package com.itjcloud.iot.gateway.model;

import lombok.Getter;


/**
 * token -> 请求头的枚举
 */
@Getter
public enum CommonTokenHeaderEnum {


    /**
     * 组织id
     */
    ORG_ID("org_id", "X-Org-Id"),

    /**
     * 子组织id
     */
    CHILD_ORG_ID("child_org_id", "X-Child-Org-Id"),

    /**
     * 租户id
     */
    TENANT_ID("tenant_id", "X-Tenant-Id"),

    /**
     * jwt id
     */
    JTI("jti", "X-Json-Token-Id"),


    /**
     * 是否认证
     */
    AUTHENTICATED("authenticated", "X-Authenticated"),


    /**
     * 应用id
     */
    CLIENT_ID("client_id", "X-Client-Id"),

    /**
     * 用户id
     */
    USER_ID("user_id", "X-User-Id"),

    /**
     * 设备id
     */
    DEVICE_ID("device_id", "X-Device-Id");

    private final String jwtName;

    private final String headerName;

    CommonTokenHeaderEnum(String jwtName, String headerName) {
        this.jwtName = jwtName;
        this.headerName = headerName;
    }
}
